﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Trie
{
    public class TrieVertex
    {
        private int words;
        private int prefixes;
        private TrieVertex[] edges;

        public TrieVertex()
        {
            this.words = 0;
            this.prefixes = 0;
            this.edges = new TrieVertex[26];
            for (int i = 0; i < 26; i++)
                edges[i] = null;
        }

        public int Words
        {
            get { return words; }
            set { words = value; }
        }

        public int Prefixes
        {
            get { return prefixes; }
            set { prefixes = value; }
        }

        public TrieVertex[] Edges
        {
            get { return edges; }
            private set { }
        }
    }
}
